package com.yanqu.road.logic.bussiness.beautyescort;

import com.yanqu.road.entity.beautyescort.*;
import com.yanqu.road.entity.beautyescort.rank.EscortWeekServerGroup;
import com.yanqu.road.entity.beautyescort.rank.EscortWeekUnionValue;
import com.yanqu.road.entity.beautyescort.rank.EscortWeekUserValue;
import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.utils.date.DateHelper;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class BeautyEscortBussiness {

    public static Map<Long, EscortUserData> getEscortUserDataMap() {
        return DaoHelper.getEscortUserDataDaoImpl().getEscortUserDataMap();
    }

    public static Map<Long, Map<Integer, EscortCartData>> getEscortCartDataMap() {
        return DaoHelper.getEscortCartDataDaoImpl().getEscortCartData();
    }

    public static Map<Integer, EscortBeautyData> getEscortBeautyDataMap(long userId) {
        return DaoHelper.getEscortBeautyDataDaoImpl().getEscortBeautyData(userId);
    }

    public static Map<Long, Map<Long, EscortReport>> getEscortReportMap(int weekId) {
        return DaoHelper.getEscortReportDaoImpl().getEscortReport(weekId);
    }

    public static Map<Integer, EscortBeautyEventBossInfo> getEventBossInfoMap() {
        return DaoHelper.getBeautyEscortConfigDaoImpl().getEscortBeautyEventBossInfoMap();
    }

    public static Map<Integer, EscortClientInfo> getClientInfoMap() {
        return DaoHelper.getBeautyEscortConfigDaoImpl().getEscortClientInfoMap();
    }

    public static boolean addEscortBeautyData(EscortBeautyData beautyData) {
        return DaoHelper.getEscortBeautyDataDaoImpl().add(beautyData);
    }

    public static boolean updateEscortBeautyData(EscortBeautyData beautyData) {
        return DaoHelper.getEscortBeautyDataDaoImpl().update(beautyData);
    }

    public static Map<Integer, Map<Long, EscortWeekUserValue>> getWeekUserValueMap(int preWeekId, int thisWeekId) {
        return DaoHelper.getEscortWeekUserValueDaoImpl().getEscortWeekUserValue(preWeekId, thisWeekId);
    }

    public static Map<Integer, Map<String, EscortWeekUnionValue>> getWeekUnionValueMap(int preWeekId, int thisWeekId) {
        return DaoHelper.getEscortWeekUnionValueDaoImpl().getEscortWeekUnionValue(preWeekId, thisWeekId);
    }

    public static boolean addEscortWeekUserValue(EscortWeekUserValue value) {
        return DaoHelper.getEscortWeekUserValueDaoImpl().add(value);
    }

    public static boolean updateEscortWeekUserValue(EscortWeekUserValue value) {
        return DaoHelper.getEscortWeekUserValueDaoImpl().update(value);
    }

    public static boolean addEscortWeekUnionValue(EscortWeekUnionValue value) {
        return DaoHelper.getEscortWeekUnionValueDaoImpl().add(value);
    }

    public static boolean updateEscortWeekUnionValue(EscortWeekUnionValue value) {
        return DaoHelper.getEscortWeekUnionValueDaoImpl().update(value);
    }

    public static boolean addEscortCartData(EscortCartData value) {
        return DaoHelper.getEscortCartDataDaoImpl().add(value);
    }

    public static boolean updateEscortCartData(EscortCartData value) {
        return DaoHelper.getEscortCartDataDaoImpl().update(value);
    }

    public static boolean addEscortUserData(EscortUserData userData) {
        return DaoHelper.getEscortUserDataDaoImpl().add(userData);
    }

    public static boolean updateEscortUserData(EscortUserData userData) {
        return DaoHelper.getEscortUserDataDaoImpl().update(userData);
    }

    public static boolean addEscortReport(EscortReport value) {
        return DaoHelper.getEscortReportDaoImpl().add(value);
    }

    public static boolean updateEscortReport(EscortReport value) {
        return DaoHelper.getEscortReportDaoImpl().update(value);
    }

    public static boolean addEscortWeekServerGroup(EscortWeekServerGroup value) {
        return DaoHelper.getEscortWeekServerGroupDaoImpl().add(value);
    }

    public static boolean updateBeautyEscortBussiness(EscortWeekServerGroup value) {
        return DaoHelper.getEscortWeekServerGroupDaoImpl().update(value);
    }

    public static Map<Integer, Map<Integer, EscortWeekServerGroup>> getEscortWeekServerGroup(int preWeekId, int thisWeekId) {
        return DaoHelper.getEscortWeekServerGroupDaoImpl().getEscortWeekServerGroup(preWeekId, thisWeekId);
    }
}
